Compatibility with cache and SEO plugins
Farin works behind cache plugins and alongside SEO plugins with no extra setup. This page says what Farin keeps correct by itself and where a checkbox is needed.
Where is it? Plugins → Installed plugins
Cache plugins
Farin doesn't cache pages itself; caching is up to your plugin. Farin handles the things that are specific to each buyer on a cached page:
- Cart count: A cached page reads the cart count from the buyer's own cart and fills it in; no one sees another person's cart count.
- Add to cart: Works on a cached page too, and the cart count updates instantly.
- Forms: The contact form and AI chat get a fresh security token before sending; even a page that has sat in the cache for days doesn't say “expired”.
- Login with code: The account page is not cached and SMS code login always works.
- Cart, checkout and account: Farin tells every cache plugin not to cache these pages.
- Persian and English: The English URL is separate, with
/en/so each cache plugin keeps two distinct copies and the languages never get mixed up.
WP Super Cache
Just click “Cache on”. No other setting is needed.
LiteSpeed Cache
Page cache only works on a LiteSpeed server. The optimizations (minifying and combining CSS and JS, delaying JS execution, lazy-loading images) work on any server and have been tested with Farin.
- Delay JS execution: Farin's header script and cart count script exclude themselves from this, so the header is laid out correctly from the start. Don't add anything to the exclusion list.
- Lazy loading: Farin loads the logo and the first image on the page earlier itself; leave it on.
WP Rocket and other plugins
Farin's header script and cart count script carry the “don't delay” marker of all common plugins (WP Rocket, Autoptimize, FlyingPress, Perfmatters and Cloudflare). If a plugin still delays them and the header gets scrambled before the first mouse movement, add these two to that plugin's “Delay JavaScript execution exclusions” list:
farin/assets/front/header/header.js farin/assets/front/common/cart-count.js
SEO plugins
When Yoast SEO, Rank Math or All in One SEO is active, Farin sets aside its own title, description, canonical, Open Graph and structured data so nothing is printed twice. Farin still keeps these correct itself:
- Other version of each page (hreflang): These plugins write nothing for Persian and English, and Farin writes it.
- canonical of an untranslated English page: Points to the Persian URL, as when there is no plugin. A Persian page never gets an English canonical.
- English sitemap: These plugins turn off the WordPress sitemap itself. Farin puts the English sitemap in
/farin-sitemap-en.xmland lists its name in that plugin's sitemap index. - Page path (breadcrumb): Farin's own breadcrumb is displayed and its structured data is written by the SEO plugin.
Farin Theme · 1405