How to speed up the site with page cache and when to reset it

← Back

The /pagecache section: the "Cache pages of this site" checkbox serves ready-made pages to guests; "Reset cache" — if visitors see an old version.

  1. Open the "Page cache" item in the "Admin" menu (address /pagecache) — the section is available only to the administrator.
  2. Check "Cache pages of this site" and click "Save".
  3. If some sections should always be rebuilt, enter their addresses in "Do not cache sections" — one per line. Subsections fall under the rule automatically. It's easier to disable an individual section with the "Do not cache" checkbox in its settings window.
  4. When visitors see an old page, click "Reset cache".

The cache stores a ready-made page and serves it to guests instantly, without querying the database. You won't see the effect: a logged-in user and administrator always get a fresh build. Check the speed in an incognito window, and not on the first page — a visitor's first visit is always built anew.

Usually you don't need to reset manually: the cache resets itself after any save in the admin panel. The "Safety page lifetime" is needed in case content changes bypass the admin panel. Personal accounts, login, registration, and the admin panel are never cached.

If it didn't work

  • Guests see the old version, but you see the new one. Click "Reset cache". If it repeats, reduce the safety lifetime or add the section to exceptions.
  • On the page, guests see data that shouldn't change on the fly. Set the section to "Do not cache".
  • The address /pagecache returns 404. The module opens only at the address of its section, and the "Page cache" section was deleted from the site. Create a section with the address /pagecache and the module pagecache, access — "Administrators only".
  • There's a warning at the top "Cache is disabled for the entire installation…". It was disabled on the server, the page settings don't affect anything yet.
Did the article help?

See also

Tips for working with the builder

The "Help" section is made for those who are building a website on "Pervaya Liniya" for the first time. It contains answers to common questions: how to create a website, what to write in the fields, how to edit texts and photos, how to connect your own domain, and how to set up sections. The materials will help you figure things out without contacting support.

The builder is simple: you fill in the fields on the creation page, and then edit the content directly on the finished website. If something does not work or is unclear, check the relevant help item. The instructions are written in plain language and describe every step.

In Help you will find answers to questions:

  • how to come up with a website address and what to do if the name is taken;
  • how to change the title, description, and other texts on the page;
  • how to add products, services, or request forms;
  • how to connect your own domain instead of an address on firstline.com.ua;
  • how to set up sections and modules for your business needs.

If you cannot find the answer you need, use the feedback form — we will help you figure it out. The section is updated so that you can always find current information about working with the builder.