Hi @hampmir
Thanks for the quick reply, we’ll try to figure out what’s going on. I see the area that’s failing, but not sure why it’s failing there.
A couple questions:
1. Is your WordPress a single site or a multisite?
2. Did you ever have our plugin installed and activated?
If you are willing to help us debug the issue, could you modify the following file:
wp-content/plugins/litespeed-cache/admin/class-litespeed-cache-admin-rules.php
At around line 517, there is a line:
if ( $input[LiteSpeed_Cache_Config::OPID_MOBILEVIEW_ENABLED] ) {
Could you add the following line above it:
error_log('INPUT IS ' . print_r($input, true));
Then try to activate the plugin again.
This will either create an error log or append to your error log (this is commonly found in /home/youruser/public_html/error_log or /home/youruser/public_html/wp-admin/error_log
but it may vary depending on your setup.
Please let us know what you get!
Cheers,
Kevin
1. Its a single site, i am only using it on this subdomain although my server has two domains timetex.dk and timetextest.timetex.dk 🙂
2.I don’t think i have ever had it activated no, it came with the package i bought from my host so i don’t know if it was activated at the start, i did now know it was installed before i had this issue. 🙂
– I have tried to change the code but i can’t seem to find the error-log you mention, i have looked through the folders but i do not have a folder called public_html.
The error_log file may be wherever your wordpress is installed, each host does things their own way, so if you look for close to where your wp-admin directory is, that may be where the file is.
Hi @hampmir,
do you mind creating a ticket in our system and give the access to your server ssh and wp-admin? We can have a look at it.
Thanks,
Hai
I have tryed to find the file but i cannot find it anywhere. I will make a ticket yes. Thank you 🙂
eehm, how do i create an account on your site so i can submit a ticket? the forum account on your site does not work for submitting tickets? 🙂
I just submitted a ticket on how to submit a ticket o.O
-
This reply was modified 8 years, 11 months ago by
Hampmir.
Hi Hampmir,
You can send us an email (It’s listed in the plugin’s main page under incompatible plugins, we’d rather not repeat it here.)
Just attach a link to this thread so we know the context.
Cheers,
Kevin
Hi @hampmir,
Saw your ticket. Will check and answer you there.
Hi @hampmir,
Its fixed. It caused because you used to enable an old lscache version and the configuration has mobile view is true but rules are empty. That means your old config is messed up somehow.
I manually added $options['mobileview_enabled'] = false; in function plugin_activation() after line $options = $this->get_options(); to disable mobile view switch when activation. After activated, I removed that line.
It works now. Enjoy your litespeed.
Cheers,
Hai
Thank you so much, it’s an awesome service that you want to take the time to log in on my site and help me solve my problem! The site isnt as fast as i hoped though, it is still pretty slow but it cut a very large amount of the loading time, at least 50% so thank you a lot!
@hampmir Well if you visit as a guest(non-login user), you will see the speed is different. Before its 3.5s, now its under 400ms.
In our next main release v1.2, we will have ESI, which can also cache logged in user
Oh i see, i din’t know there was a difference between logged in users and guests. Its much faster when you are logged out that is correct.
I do still think its kinda slow when you visit a catagory for the first time, which most of my users will do when they find my site, but when they have been to a catagory once and it is cached then it goes super fast. Is there a way to shorten the time it takes to load a catagory the first time? It’s definatly moving in the right direction 🙂
-
This reply was modified 8 years, 11 months ago by
Hampmir.
-
This reply was modified 8 years, 11 months ago by
Hampmir.
-
This reply was modified 8 years, 11 months ago by
Hampmir.
That is a good question. That is why we have crawler ^_^
Try it. It can automatically visit your “new” pages to cache them.
@hampmir
To add to Hai’s response, our cache works like so:
If there are no cache entries, go to WordPress.
Process WordPress and create cache entry.
return to client.
So the fast response times are when the page is served from cache. If the page is not in the cache, it will take some time to create the page.
If you do not update your site often, you can set an extremely long TTL time (e.g. a week or a month), and that way it’s almost guaranteed to be a cache hit until you update your site again. Our plugin will know whenever you update your site, so the cache should be cleared automatically.
As Hai mentioned, the crawler is available as well to make sure that your pages are cached.
Hope this helps,
Kevin
Okay thanks for the explaination, i tryed activating the crawler but it seems that i cant do this without my host doing it, and im on a shared server so the documentation doesnt recommend it.
But just to be clear, if i visit one of the site manually and it gets cashed, will that also mean that if a random person comes to look at that page the next day, it will also be cashed for that person, or is it just me? 🙂