Banija
December 28, 2023, 9:38am
1
What issue or error are you experiencing?
how to enable opcache?
add few line to php.ini.hbs doesnt work
[opcache]
opcache.enable=1
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.enable_cli=1
What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc
screenshot from query monitor
System Details
Nick-B
December 28, 2023, 2:31pm
2
Hi @Banija
Do you have a specific need for enabling this while developing locally? Or is it just because Query Monitor is calling it out? Typically this is something more important once the site is live and hosted and not really necessary for developing in Local or other offline applications since it has more to do with how visitors interact with the site and the server environment.
Banija
December 28, 2023, 3:34pm
3
i wanna test comparison speed with OPCache enabled and disable it, looking for better performance,
because i change to OS linux, i cannot used laragon (windows),
i need to activated memcached or redis too, if possible in localwp
Nick-B
December 29, 2023, 2:35pm
4
Hi @Banija
I don’t believe memcache and redis are compatible that I’m aware of. I’ll share some feature requests and other comments below that I’ve found:
Local doesn’t have a way to configure redis for a WordPress site – can you describe in a little more detail what you’re trying to do with WordPress in Local?
Yeah, that us under the “Classic” category, which basically means that it relates to when Local used Docker. While it was using Docker, you could treat it as a completely separate VM and install things like you would under an Ubuntu VM. With Lightning, you get a much faster site because the pieces of server software (php,mysql,nginx) are compiled for your specific OS and architecture.
Maybe not completely dead in the water, but it’s definitely harder than it seems. The main challenge is getti…
For some high traffic sites we use MemCache for storing database results, would love the ability to maintain through Local
I’d like to be able to test code on sites that may operate differently when an external object cache is used. Can you add this as a feature so that people can use object cache plugins to connect to it like Redis?
system
Closed
March 28, 2024, 2:36pm
5
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.