Precache in wp-admin
-
I wanna precache query results in wp-admin so that no one like myself or any other admin will run into a slow loading pages again. Ideal would be if the related cache objects are updated when related posts are saved. For info we have a lot of post types that are for internal use only so no, it’s not a question about just preloading pages at the front-end. This is about precaching a lot of stuff that is just seen in the wp-admin area.
Can I do this with LiteSpeed Cache somehow? Or what is best practice here? Am I the only one who wants this?
-
For “pre-caching” or cache warmup use the built-in crawler to warmup the cache for the frontend.
Do you mean the built-in crawler in LiteSpeed Cache? Doesn’t that just crawl page visits? How do I “warm up” object cache? I need help with wp-admin. Not the “front-end” of the website.
If the object cache does not allow any improvement, then you most likely have inadequate hosting. However, the type and number of plugins installed contribute to the performance in WP Admin suffering, but that is just the architecture of WordPress and very often poorly programmed plugins.
I don’t really see why Object cache should be any solution to slow queries. It’s more a solution for a site that wouldn’t have problems if it just had fewer visitors. My problem is not a lot of visitors. The problem is a big database and slow queries. Then object caching with a time limit is not the solution. It mostly expires before next person visit the page anyway so all visits are in reality slow visits. Object cache should not be the main caching. At least not with a flush after expired time. But if I can use object cache without any time limit and with precache instead. Then it could work as the main caching.
The answer should not be to delete a lot of posts. There must be positble to have a pretty big database and still have a fast website. And there must be cache systems that don’t require visitors or admins to enter the site and wait long time for it to cache? Why isn’t there a precache system??
I don’t see how I would use the crawler for wp-admin to be honest.
So the answer is; That the site should be built to be quick without cache and not have any query that can take long time for a non-stressed server.
The cache should be only for helping when a server/database get stressed from a lot of hits. Not for slow queries from a non-stressed database. That is basically what you are saying.
While I would like to be able to pre-cache some query results that I know are slow always. It’s not affected by other plugins or anything. It’s my own queries but I can’t make them faster. I just wish I could pre-cache them or do half the job pre-cached or something. Get a cached table to filter from or anything. But I guess that’s not possible then. The answer for that is to upgrade the server, is what I read from your answer.
I guess we don’t get any further here.
Then I don’t understand why we brought crawler up. I have only wanted help with wp-admin.
Okay, I thought Page Cache was for front-end caching. It caches the whole page to be loaded, the HTML. And is matched by the URL. And Page cache is what the crawler can pre-cache . It’s at least how I use Page Caching. And, we both agree that it’s nothing to be used for wp-admin.
Object Cache is used to prevent more DB-queries than necessary on a page load. It caches query results to be used later on the page again. BUT, the db-query needs to be run at least ONE time for the person entering the page. Because it’s the same time it’s cached.
Then there is Persistent Object Cache which is the same as Object cache just that the cached data can be stored longer than just for the page load. But still, NEEDS to be cached by a person entering the page at some point.
What have I missundrestod?
the crawler won’t help on wp-admin pages
only thing you could give it a try is the object cache , but by default it only caches few default groups , the other plugins/themes need to utilize
wp_cache_set(),wp_cache_add()andwp_cache_get()functions to actively use the object cache.I don’t mind use those functions everywhere if it helps. But we still have the problem of that time expiration. Should I just set like a month or something and manage the cache by the mentioned functions instead?
no, no , I mean , the object cache merely provides a bridge connecting PHP scripts and redis/Memcached , the other plugins you have , need to actively utilize it in order to reach its max potential
otherwise it just caches some wordpress code objects
well, yes, but I can see what parts are slow, I use Query Monitor. And Im trying to work with codes I codes myself now to at least get those fast first. Then I can worry about 3:rd party codes. But I have already a few plugins I coded myself.
So you don’t agree with that sometimes it can exist queries that just are very big and slow that can’t be made faster?
That it can exist slow queries that can’t be changed to be faster.
Ok.
Another question: Does the plugin have a combine CSS-files feature for admin. Or is that just for front-end?
all page optimization options only work for frontend pages
-
This reply was modified 2 years, 7 months ago by
qtwrk.
-
This reply was modified 2 years, 7 months ago by
The topic ‘Precache in wp-admin’ is closed to new replies.