Venkat Raj
Forum Replies Created
-
When visiting a page with
wpo-cache-status: cached
header, do you see an HTML comment similar to the screenshot when viewing source code?
https://prnt.sc/sKOGycDci-3QHi @rawan2021 The number of requests depends on number of plugins you are using and type of your site. WP-Optimize can minify those assets and merge them in to groups.
Could you please go through our documentation and let me know if you have any specific issue? Thanks
https://getwpo.com/faqs/category/minification/Hi @marberz It looks like there is an uncaught error happened on your site. Could you please share your php error log entries using https://pastebin.com/ ? So, I can help. Thanks
@newbie63 WP-Optimize provides page caching meaning that when a user requests a page, the generated HTML response is cached. When another user requests the same page, the cached HTML response is served instead of newly generating an HTML response. You can go to
Dashboard => WP-Optimize => Cache
and turn on caching.
What site health checkup says is to use an object cache. In simple terms, Object cache caches the result of database queries. When the same query needs to be done again, it serves result from cache rather than fresh database query. This is something your hosting provider can provide. Based on the type of object cache (Redis, Memcached) they provide you need to use respective plugin
https://www.ads-software.com/plugins/redis-cache/
https://www.ads-software.com/plugins/memcached/@forcesail I was partially able to reproduce the issue.
i.e. When using
wp_localize_script
it is added in a separatescript
tag and is not resulting in a error. However, if usingwp_add_inline_script
WP-Optimize adds separate try/catch block which is a bug and results in the error you mentioned. Thanks for reporting.
I’ve added this to our to do list. A fix will be available in the next release.@magnavision I believe
> 67,4 MB with a max capacity of 250 MBthis is DB size? I can’t see the php error log you have posted?
Does any of your table needs repair?
Please try increasing memory limit@hungpham WP-Optimize sends
Cache-Control: no-cache
header when serving cached pages. According to NGINX docs, it won’t cache responses that has valuesprivate
,no-cache
orno-store
forcache-control
header.
I think it is the reason you getMISS
You could ignore the header usingproxy_ignore_headers
directive.@webprom Serving webp image format using redirection checks more than
mod_rewrite
module such asmime
andheaders
Could you please visitwp-admin/options.php
and see what the values are for these options
https://prnt.sc/U6mIk-Vs4zfy@l575 You need to add this to active (storefront) theme’s
functions.php
file. Remove code fromwp-includes
functions.php file.Please note that If you copy/pasted the code provided, it may have backticks instead of single quote.
add_action('after_setup_theme', 'ab123_remove_robots_txt_entry'); function ab123_remove_robots_txt_entry() { if (function_exists('WP_Optimize')) { remove_filter('robots_txt', array(WP_Optimize(), 'robots_txt'), 99, 1); } }
If the problem persist, please provide screenshot of the code you added.
@oliverraduner I was able to reproduce the first issue. But we don’t add
text/javascript
to minified assets. I agree with double quotes.
I’ve added this to our to do list and look into this. Thanks for pointing out.@magnavision What is the size of your database? It sounds like either the php processes timed out or insufficient server resource because of your database size.
@mdotk You could use this filter
wp_optimize_sub_menu_items
<?php add_action('admin_menu', 'wpo_filter_menu', 9); function wpo_filter_menu() { add_filter('wp_optimize_sub_menu_items', 'wpo_remove_images_menu'); } function wpo_remove_images_menu($sub_menu_items) { foreach ($sub_menu_items as $key => $item) { if (isset($item['menu_slug']) && $item['menu_slug'] === 'wpo_images') { unset($sub_menu_items[$key]); break; } } return $sub_menu_items; }
- This reply was modified 1 year, 6 months ago by Venkat Raj.
> Is it possible that the https setting is coming from the hosting account?
No. unless you have incorrectly installed SSL certificate.How often does this happen?
Could you please check the source code (URL and protocol [http/https] of static assets) when this happens?@lunarmoth I happen to see your unstyled page. While inspecting the source code, the webpage is looking for assets (CSS, javascript, and image files) using
https
protocol where as your site useshttp
Could you please go toDashboard => Settings => General
and make sureWordPress Address (URL)
andSite Address (URL)
are usinghttp
protocol rather thanhttps
?
Do you happen to usehttps
in the past?@lunarmoth Could you please post screenshots of your settings? or you can export the settings and share it using https://pastebin.com/ ?
Please do a plugin conflict test, i.e. disable all plugins and activate it one by one to find out which one is causing the issue.Which theme are you using?