SuiteCRM Repair and Rebuild and clearing the cache

Learn when SuiteCRM needs Quick Repair and Rebuild or a cache clear, which cache folders are safe to delete, and why configuration changes seem to have no effect until you run them.

On this page

Why SuiteCRM changes sometimes need a repair or cache clear

An admin changes a field label, adds a field to a layout, or edits a configuration value, saves it, and sees nothing different on screen. In most cases SuiteCRM is not ignoring the change. It is serving cached metadata and configuration that were built before the change, so the change takes effect only after the relevant cache is rebuilt or cleared. Knowing which cache applies to which kind of change is the first step in running SuiteCRM Quick Repair and Rebuild and bin/console cache:clear correctly.

The two tools cover different layers. Quick Repair and Rebuild, run from the Admin area, regenerates the legacy metadata and database layer: vardefs, the table definitions that SuiteCRM builds from module metadata, and the files that combine custom fields and layouts. It is the step teams usually need after Studio or Module Builder changes, after installing a package, or after a database change that the application has to reconcile. In SuiteCRM 8, bin/console cache:clear clears the Symfony layer, which holds compiled container definitions, routes and parsed configuration such as values read from .env or framework settings. Teams usually need it after editing configuration, deploying code, or changing authentication settings such as AUTH_TYPE.

The two steps are not interchangeable, and running one does not replace the other. Plan to run the rebuild as an admin action from the web interface, and the cache clear from the command line as the account that owns the application files, because a cache cleared as the wrong user can leave files the web server cannot read. Confirm the exact menu path and command options for your release in the SuiteCRM admin documentation for your version, and test the sequence on staging before running it in production. If a change still does not appear after both steps, the cause is more likely a file permission problem or a stale browser session than a cache, and it is covered on the sibling pages for permissions and logs.

Quick Repair and Rebuild or cache:clear: which one to run

Changes to fields, relationships and Studio layouts are stored as metadata that SuiteCRM reads and caches. Until that metadata is rebuilt, a screen may show the old field list, or a new field may not save. Confirm which rebuild action your SuiteCRM 8.x release exposes, because the Quick Repair and Rebuild workflow many administrators know from SuiteCRM 7 may differ in name or location in your version.

  • Field and relationship edits: After saving a vardef change through Studio or Module Builder, run the rebuild action your version provides before testing the form.
  • Layout changes: Check the edit view, detail view and list view separately, since one view can update while another still shows a cached copy.
  • Hand-edited custom files: If you changed files in custom or extension folders directly, a rebuild may not pick them up, so test again after a cache clear.
  • Database columns: Confirm the database column exists after adding a field, because metadata and schema changes can be separate steps. Verify this for your version.
  • Test with real data: Open an existing record, edit the new field, save, and confirm the value reads back.

After any change, confirm the field appears in every view, saves a value, and returns that value on a record created before the change.

What Quick Repair and Rebuild and cache:clear actually rebuild

SuiteCRM does not read every definition from source files on each request. It generates and stores compiled metadata, dictionary files and cached container and configuration data, then serves from those copies. When you change a field definition, a layout, a dropdown list or a configuration value, the running instance can keep showing the old behavior because it is still reading the stored copy. That is why a configuration change can appear to have no effect until the right rebuild or clear step runs. The practical first step is to identify which layer holds the stale data, because the fix for one layer does nothing for the other.

The legacy Quick Repair and Rebuild and the Symfony cache are separate layers. Quick Repair and Rebuild belongs to the metadata and database-facing side of the application, where it regenerates dictionary and table definitions from the current module files. The Symfony cache, cleared through bin/console cache:clear in SuiteCRM 8, holds the compiled container and framework configuration. Running one does not refresh the other, so a change to a service or environment setting usually needs the console command, while a change to a module definition usually needs the repair step. Before you run either command, check the documentation for your installed version, because the exact steps, required user and any prerequisites are version-specific. Confirm them against the installation you are running, not against memory of an older release.

Plan these steps as part of any change window rather than as an emergency fix. Record which layer you changed, run the matching rebuild or clear on a staging copy first, and confirm the change in the browser under the same user role that reported the problem. Run the commands as the same operating system user that normally runs SuiteCRM, since a cache created as root can block the web server from writing to it, a problem covered in the permissions page of this group. Keep a backup before any destructive step, and ask your implementation partner or SuiteCRM support to confirm which cache folders are safe to remove for your version, rather than deleting directories by name from a guide.

How to run a repair and cache clear without breaking production

This sequence confirms the change is saved, protects the instance with a backup, runs the repair or cache clear as the correct user, and proves the result in a fresh session. Each step ends with a check so a failure is caught before users see it.

  1. Confirm the change is saved and scoped

    Before touching the server, the administrator confirms what changed and where it was made, whether in Studio, Module Builder, a custom file or a configuration file. Check that the file is saved on the server itself, not only in an editor or a deployment branch, and that the change is in the instance you intend to update. Record the name of the module, field or setting so you can verify it at the end. The step is complete when you can name each changed file or metadata item and confirm it exists on the production host, with the same content you reviewed.

  2. Back up files and database

    Take a full backup of the instance files and the database before running any repair or cache command, since a rebuild rewrites generated files and metadata. The SuiteCRM migration documentation also advises backing up files and database before significant changes, and it notes that an upgrade or migration may remove non-core files under the public/legacy folder, so keep a copy of any customizations there. Confirm the backup completed and that the archive can be opened and listed. Your backup and restore procedure should also state how to restore if needed. The step is complete when you hold a verified copy of both the files and the database, stored outside the instance.

  3. Put the instance in a safe window

    Tell users that a repair may briefly change how pages load, and choose a quiet period for the work. Confirm that the Messenger worker and the scheduler are not mid-job, since a rebuild running during background processing can produce confusing results. Check the scheduler status so you know which jobs are pending. The step is complete when no critical background task is running and the team has been told when the change window opens and closes.

  4. Run the repair or cache clear as the correct user

    Run Quick Repair and Rebuild from the admin interface for metadata changes, or run bin/console cache:clear from the SuiteCRM 8 installation directory when the change is to Symfony configuration or cached application code. Run console commands as the same operating system user that the web server and cron use, because running them as root can leave cache files owned by root and block the web server from reading or writing them. Record the command, the user and the start time. The step is complete when the command returns without errors and the output shows the cache or metadata step finished.

  5. Check file ownership and permissions afterward

    Confirm that the files and folders the repair touched are readable and writable by the web server user, and that the cron and Messenger worker user can still reach the cache and log locations. List ownership on the cache directory and the generated files, and compare it with the expected web server user for your host. If you find root-owned files created by the command, correct ownership before users sign in, since the permission fixes are a common source of later failures. The step is complete when ownership matches the web server and worker user and no new permission errors appear in the logs.

  6. Check the logs and background jobs

    Review the SuiteCRM log and the Symfony log for new errors raised during or after the repair, and confirm the scheduler still reports its jobs running. Look specifically for messages about missing classes, unreadable cache files or failed metadata loads. The step is complete when the logs show no new errors from the change window and the scheduled jobs have run on their normal schedule.

  7. Verify the change in a test session

    Sign in with a test user whose role matches the people who will use the change, and open a new browser session rather than one that existed before the repair. Old sessions can hold stale data, so a fresh sign-in is the reliable check. Confirm the field, layout, workflow or setting now behaves as intended, and that the test user can still reach records they should see. If the change does not appear, clear the browser cache for the site and check that you are on the same instance you updated before retrying the repair. The step is complete when the intended change is visible and working for the test user.

  8. Record the outcome and keep the rollback path

    Write down the change, the backup identifier, the commands run, the user they ran as, the permission results and the test outcome. If verification fails or users report errors, restore from the backup taken in the second step rather than trying to patch the live database by hand. Keep the backup until the change has been stable through at least one scheduled job cycle. The step is complete when the change record is filed and the rollback path is confirmed to point to a backup you have tested.

Which cache folders are safe to delete and which are not

SuiteCRM keeps several kinds of generated and user-owned data on disk, and they look similar in a file browser. Before you delete anything during a repair or cache clear, sort each folder into one of these categories and confirm the exact paths against the documentation for your installed version.

Framework cache rebuilt on demand

SuiteCRM 8 is built on Symfony, which writes compiled container, route and template caches under the application's var directory. These files are generated output, so clearing them is the normal fix when a configuration or environment value appears to be ignored. The safe step is bin/console cache:clear run as the same user that runs the web server, because a cache owned by the wrong user can block the rebuild. Check the file ownership after you clear.

Legacy compiled dictionary and metadata output

SuiteCRM 7-style code keeps compiled dictionary, vardef and language output in generated cache folders that Quick Repair and Rebuild regenerates from module definitions and custom files. Deleting these is usually safe, but only if you know the regenerated copy will read your customizations. Confirm which folders your version regenerates before removing any, and keep a copy of the whole instance first.

Uploaded documents and attachments

Files users attach to records, documents and emails are stored in the upload area of the instance, or in object storage if you configured S3 or Azure. They are not cache, and no repair or cache clear recreates them. Removing them causes permanent data loss and broken links on records. Treat the upload location as part of your backup scope, separate from every cache path.

Custom code and extension files

Custom modules, logic hooks, Studio and Module Builder output, and extension files are your configuration, not cache, even when they sit near generated folders. Quick Repair and Rebuild reads them to build the new cache, so deleting them removes the customization itself. Keep these under version control, and review any customization directory listed in the migration guidance before you change folders on a live instance.

Environment and secret configuration

Files such as the environment file, config overrides and the SuiteCRM configuration files hold database credentials, URLs, and authentication settings like AUTH_TYPE. They are not regenerated by a cache clear. Editing them is often the actual change, which is why a cache clear must follow the edit, not replace it. Store a dated copy before every change so you can compare what you altered.

Confirm paths before manual deletion

Folder names change between SuiteCRM 8 minor releases, and the same name can mean cache in one version and data in another. Before you delete any folder by hand, read the documentation for your installed release, take a full file and database backup, and test the deletion on a staging copy. Where the documented command covers the job, use it instead of manual removal.

Compatibility matrix

Which rebuild or clear action fits each change type

This table pairs each common kind of SuiteCRM change with the repair, rebuild or cache action that makes it take effect, the effect to expect and what to check afterward. Read it by finding your change type in the first column, then confirming the exact commands and sequence for your SuiteCRM 8 minor version in the official documentation before running anything in production. The main takeaway is that most stale behavior comes from a skipped step, so verify on the page you changed, not only in the admin screen.

Change typeAction to takeExpected effect and what to verify
Field or vardef editRun Quick Repair and Rebuild from the admin tools, then clear the cacheNew field or changed definition appears in forms, list views and the database; open a record and a list view to confirm
Studio layout changeClear the cache, then reload the layout in a fresh browser sessionLayout changes show on edit and detail views; check each affected view for the role you tested with
Symfony configuration changeRun bin/console cache:clear as the web server userChanged settings take effect on the next request; confirm the new value is read by checking the affected feature
Extension or custom codeRun Quick Repair and Rebuild if metadata changed, then clear the cacheHooks and extension code load; check logs for errors and test the workflow the code touches
Permission fixCorrect file ownership, then clear the cache if console commands were run as rootErrors caused by unreadable or root-owned files stop; confirm the web server and cron users can write the cache folders
After upgradeFollow the version upgrade steps, then run repair and cache clear as documented for that releaseUpgrade-specific migrations and cache rebuild complete; check the scheduler, login and key modules before users return
Config change with no visible effectClear the cache and confirm the correct config file was editedOld value disappears after clearing; if not, check for a second config source or a permission error
Language or label changeClear the cache and, where needed, run Quick Repair and RebuildUpdated labels appear for affected users; check the language setting on a test account

Why configuration changes appear to have no effect

A configuration change that appears to do nothing is usually one of three things: a cache still serving the old value, a session holding onto values from before the change, or a command that wrote files as the wrong user so the web server cannot replace them. In SuiteCRM 8 the cache lives in the var/cache tree and is built by Symfony, so a change to a .env value, a Symfony config file or a bundle setting may not reach requests until the cache is cleared. PHP opcode caching adds a second layer: if OPcache holds compiled PHP files, the web server can keep running code from before your edit even after the cache folder is cleared. Restarting or reloading the PHP-FPM or Apache process, as your hosting setup allows, is the step that clears the opcode layer. Confirm which PHP handler and OPcache settings your environment uses before you plan a change window.

Sessions create a different symptom. A user who logged in before a change may keep seeing old menus, feature flags or role-dependent behavior until they log out and back in, because the session stores values that were read at login. Test changes that affect permissions or navigation in a fresh private browser session before you assume the change failed. Session storage location is covered elsewhere on this page's sibling pages, so here the point is only to rule out the session as the cause before you go further.

To tell a cache problem from a save problem or a permissions problem, reproduce the change in one clean request and check the evidence. If the value appears in the admin screen or the database but not on the page, suspect the cache or OPcache. If the admin screen shows the value as unsaved after a refresh, suspect a save failure, and check the SuiteCRM log and the web server error log for write errors. If the change is saved but a later command or page fails to pick it up, check who owns the files under cache and var: a file written by root during a console run can be unreadable or unwritable by the web server user, and the same file can silently block a rebuild. Ask your administrator to confirm the web server user and the user your cron and console jobs run as, so the owner check has a clear baseline.

Security and operational risks of running repairs in production

Repair, Rebuild and cache clearing change files, database structures and runtime state that users and background jobs depend on. The cards below cover the risks that most often turn a routine maintenance step into an outage or an exposure, and the checks that keep each one small.

Running during active user sessions

Quick Repair and Rebuild rewrite cached definitions and metadata that live sessions read. Users in the middle of editing a record, running a report or submitting a form can hit errors or stale layouts while the operation runs. Pick a low-activity window, announce it, and confirm no long-running jobs are in progress before you start. Watch the logs while the command runs so you can stop and investigate early.

Deleting custom files by mistake

Rebuild regenerates files inside the instance, and the legacy folders hold extensions, custom fields and Studio output that look like generated content but are not. Deleting a folder to force a clean state can remove customizations that exist nowhere else. Before any manual deletion, confirm the folder is a documented cache, back up the instance files, and check the migration guidance on customizations under the public/legacy folder.

Before you migrate

Permission changes that break cron and the worker

Running console commands as root can leave cache and generated files owned by root. The web server user, which runs cron jobs and the Messenger worker, then cannot write to them, and background tasks fail in ways that look unrelated to the repair. After every console run, check ownership of the var and cache directories against the user that serves the web application. Treat permission drift as a likely cause when scheduled jobs stop after a cache clear.

Exposing debug output in production

Enabling verbose output or debug mode to diagnose a repair failure can write stack traces, file paths, configuration values and query details into logs or pages that users or other staff can reach. Keep debug settings off on production, enable them only on staging or for a short, documented window, and remove the setting afterward. Check that log directories are not served by the web server and that log files are restricted to the operators who need them.

Credential and configuration exposure during changes

Cache clears and rebuilds often follow configuration edits made in a hurry, such as database settings, LDAP bind credentials or SAML keys. Editing a file directly on production can leave a copy in shell history, a backup, or a version control commit. Keep secrets in environment or secret stores where your setup allows it, avoid pasting them into commands, and review changed configuration files before and after the operation.

Skipping backups and staging tests

Repair and cache operations are usually reversible, but a bad rebuild on an instance with unusual customizations can still leave the system unusable. Take a database and file backup before the change, rehearse the same steps on a staging copy built from production data, and record the exact commands and their output. The migration docs give the same advice for moves between major versions, and it applies equally to routine maintenance.

Migration docs

Questions teams ask before running SuiteCRM repairs themselves

Can one SuiteCRM admin run repairs and cache clears alone?

Yes, an admin with shell access to the server can run these steps, but the work touches the database, the instance files and the permissions those files depend on. The real question is whether that admin can recover if something goes wrong. Console commands must run as the same user the web server and cron use, or the next page load can fail on file ownership. Before the first run, write a short runbook that names the user, the commands, the backups taken and the person who signs off. A second person reviewing that runbook is often the cheapest safeguard a small team can add.

How long does a SuiteCRM repair and cache clear take?

The duration depends on instance size, the number of custom modules and extensions, and whether the repair runs alone or alongside an upgrade or migration. Most of the elapsed time usually sits in the backup, the staging rehearsal and the checks afterward, not in the command itself. No standard duration is published for these steps, so time the full sequence on a staging copy of your own instance and use that measurement to plan the maintenance window. Ask any partner to base its quote on the same staging timing.

What does a repair need from the team before it starts?

A repair needs a recent backup, a staging copy, a maintenance window and a rollback plan. Take a full database backup and a backup of the instance files, and confirm you can restore both on staging before you touch production. Schedule a window that lets users know the system may be unavailable, and agree who can make the call to stop or roll back. The SuiteCRM migration documentation makes the same points about staging, file and database backups and reviewing customizations, so use it as a checklist even when the work is a repair.

Is clearing the SuiteCRM cache risky?

Clearing the cache is low risk when it is limited to the cache folders and the bin/console cache:clear command, because SuiteCRM rebuilds those files on the next request. The risk comes from deleting the wrong folder, such as custom code, uploaded documents or the session store, which can cause data loss or sign users out. Expect the first pages after a clear to load more slowly while the cache regenerates. Confirm exactly which folders are safe for your version before deleting anything by hand, and prefer the console command where it covers the need.

Why do my SuiteCRM configuration changes have no effect?

SuiteCRM keeps compiled configuration and metadata in cache, so a change saved to a file may not take effect until the cache is cleared. Field, layout and relationship changes can also need a repair and rebuild before users see them. Check three things first: that you edited the file or setting the instance actually reads, that the web server user can write the cache, and that the change completed on the server you are viewing. If the value still does not change after a clear, compare the running configuration with the file on disk before assuming a bug.

What does a partner add compared with doing repairs in house?

A partner adds a repeatable runbook, a rehearsal on staging, an independent review of the steps and written evidence of what changed. Your in-house team keeps the knowledge of your business rules and customizations, which a partner must learn during the engagement. Under a fixed-scope agreement, DeployOpen agrees the scope, deliverables and timeline in writing before work starts. Ongoing support and upgrades can run as a retainer. Ask any provider to state which steps it will perform, which it will hand over, and how it will document the result.

What does outside help cost compared with internal effort?

Internal cost is staff time, a staging environment, the maintenance window and the risk of an extended outage. Outside cost is the fee for the agreed scope, which DeployOpen sets from a written scope rather than a published price list. One-time work covers the repair, the rehearsal and the documentation, while a retainer covers recurring support and upgrades. Ask for a quote that lists each step, the environments it covers, what the client must provide, who restores backups if a rollback is needed, and whether a retest is included.

Why a configuration change can look like it did nothing

The change starts in the admin UI or a config file and is written to the database or to files on disk. SuiteCRM keeps compiled state in its legacy repair layer and in the Symfony cache, so the running session may still read the old copy. A Quick Repair and Rebuild or a bin/console cache:clear refreshes that state, and a new session then sees the change. If the change still has no effect after a refresh, check file permissions and whether the write actually landed, then confirm the backup before trying anything else.

Where a saved change waits for a repair or cache clear to take effect.

How to confirm the repair fixed the problem

This sequence checks that the Repair, Rebuild or cache clear actually changed what users see, that no new errors appeared, and that background jobs still run. It ends with a dated change record that a future administrator can follow.

  1. Confirm the change reached the running instance

    The administrator who made the change confirms that the command or setting ran against the instance users actually reach, not a staging copy or a second web root. Check that the command finished without errors and that the cache folder or configuration value shows the new state. Record the server name and the path of the SuiteCRM installation. The step is done when the person can state which instance was changed and which command or setting was applied to it.

  2. Reload the affected screen in a fresh session

    Sign out, close the browser window, and sign in again in a new session, or use a private browsing window, so the old session and any browser-side copies do not hide the result. Open the screen, field, layout or workflow that was failing or showing stale behavior before the change. Compare what you see with the behavior you expected. The step is done when the screen shows the corrected result for at least one test record and one user account with the affected role.

  3. Test the change with a non-administrator account

    Ask a user who is not an administrator to repeat the action from the original report. Administrators often see fields or menus that ordinary users do not, so a fix that looks correct to an admin may still fail for a sales or service user. Record the role, the record used, and the result. The step is done when the user confirms the expected behavior, or when the failure is documented with the exact steps that reproduce it.

  4. Check the SuiteCRM log for new errors

    Open the SuiteCRM log and the Symfony logs for the minutes around your test, then compare them with the entries from before the change. Look for new error or critical entries that match the failing screen, the module name, or the time of the test. Do not treat an empty log as proof of success unless you know the log level captures the relevant events. The step is done when you can say whether new errors appeared. For how to read the fields and set log levels safely, use the SuiteCRM logs and debugging page.

  5. Confirm the scheduler and Messenger worker still run

    Check that the scheduler widget shows a recent last run and that the Messenger worker is running under the expected user. Repair and cache operations can change permissions or interrupt background processes, so a successful screen test does not prove that queued jobs still work. Confirm that cron still fires and that no tasks are stuck in Pending. The step is done when both checks show normal activity after the change. If either check fails, pause further changes and use the scheduler and async task pages for diagnosis.

  6. Record the version and change in the change log

    Write a change log entry that names the SuiteCRM version from the installed release, the date and time, the person who made the change, and the exact command or setting used. Include the cache folders affected, if any, and whether a Quick Repair and Rebuild was run. Add the test results from the non-administrator check and the log review. The step is done when the entry is saved in the change system your organization uses and another administrator can locate it without asking the person who made the change.

How DeployOpen handles repair and cache issues for SuiteCRM

DeployOpen plans and implements self-hosted open-source platforms inside the client's own infrastructure, including SuiteCRM 8 environments on servers, cloud accounts or data centers you control. When repair and cache problems keep recurring, the usual starting point is a written, fixed-scope diagnosis engagement. The scope is agreed in writing before work starts, and it normally covers the instance layout, the web server and PHP-FPM users, the cron and Messenger worker setup, where the cache and generated files live, and which changes were made through Studio, Module Builder or direct file edits. The output is a runbook that tells your team exactly when to run Quick Repair and Rebuild, when to run bin/console cache:clear, which folders are safe to clear, and which user should run each command.

A runbook only holds if the people who run it can reproduce the result. DeployOpen can review your current practice, record the commands and their expected output in a form your administrators can follow, and test the runbook on a staging copy of your instance before it goes near production. Where a change repeatedly fails to take effect, we trace it to its cause, which is often a file owned by the wrong user, a stale cache from a previous deployment or a customization that was never rebuilt. Confirm with us during scoping whether the work also needs to cover related areas such as scheduler checks, log review or file permissions, since those are handled as separate pieces of work.

For organizations that want ongoing help, DeployOpen offers retainers for support, upgrades and continuous testing. A retainer is useful when every SuiteCRM minor release, which the SuiteCRM project publishes on a regular cadence, changes the caching or repair steps your team relies on. Ask any partner, including us, to state in the quote what is one-time (the diagnosis, the runbook and the staging test) and what recurs (support hours, upgrade work and retesting after each release), and to name the environments and access they will need. Check release details against the SuiteCRM LTS and release lifecycle page and your own change calendar before you agree a schedule.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.