- This topic has 12 replies, 2 voices, and was last updated 5 years, 5 months ago by
Sebastian.
Author | Posts |
---|---|
olleka
November 8, 2019 at 4:26 pm
|
Heads up! this post was created when Microthemer was at version 5. The current version is 7. Some references to the interface may be out of date. Hi But the main question is if it is enough to move just the active-styles.css Regards |
Sebastian
November 9, 2019 at 10:06 am
|
Hi Olle, Could you be specific about which changes are working on the development server that are not showing on the live site? If caching is not the cause, it could be due to some other differences between the dev and live site. It will often be fine to just upload the active-styles.css file. But other times, it is best to export your local Microthemer settings to the live site. This will ensure everything is consistent, and means you can make Microthemer edits on the live site and safely overwrite the active-styles.css file uploaded from the dev site. I can think of a few instances when exporting your settings will be necessary:
Does that help at all? Thanks, |
olleka
November 9, 2019 at 10:40 am
|
Hi I suspect there is some caching going on after all. On the server level. If I “trick” the browser to load a page without cache like On I’ll talk to the server manager and see what can be done. Regards |
Sebastian
November 9, 2019 at 7:28 pm
|
Ah OK, yes it probably is down to caching then 🙂 |
olleka
November 10, 2019 at 8:54 am
|
Well. I learned that the server cache is rebuilt every 30 minutes or so. One strange thing is that if I go in to MT interface and look at the interface I can se that for instance a background image is at https://hamnen.se/wp-content/uploads/2019/07/visa_fler_ny.jpg Also when I try to change that and reload the CSS I get the error Write stylesheet error So can that be the problem of the new transfered css file not taking effect? Regards |
olleka
November 11, 2019 at 9:21 am
|
Hi One more question if you have time… When I’m logged in But if I logout The CSS file is an old one How can that be? |
Sebastian
November 11, 2019 at 1:58 pm
|
Hey Olle, 1. I think you should be able to solve this using relative paths. So instead of:
Use
When you insert background images using MTs WP library feature, it uses relative paths in order to cater for setups like yours. Or did you in fact use the image insert button rather than entering the URL manually? 2. When you are logged in, MT uses the current time to ensure the most up to date file loads:
This is circumventing your server cache. But regular site visitors get the MT save count:
This number increases every time you make a change in Microthemer. And so under usual circumstances clears any cache for non-logged in site visitors. But because you are working on the dev site, the number isn’t incrementing on the live site, and stays at 8888. Your server has probably cached that URL. So you will need to manually clear the server cache after making local MT changes. Does that make sense? Thanks, |
olleka
November 11, 2019 at 4:02 pm
|
Thank you for the answer. 2. Yes it makes sense. I just wonder two things. Since according to the server manager the server cache should be refreshed every 30 minutes. Does MT save the “save count” in the database? And if it is would it be a good idea to push the MT database table to the live site also? And could it in any way be related to the Regards |
Sebastian
November 11, 2019 at 4:10 pm
|
Hey, Your colleague emailed me and said “almost every folder and functionality will be locked for security reasons“. So that may be the cause of your WP write error. The DB save count is stored in the database, in the wp_options table under the name:
(along with a bunch of other user preferences) The current MT settings are also stored in the wp_options table under the name:
Only revisions are stored in the wp_micro_revisions table, which is a separate table. Cheers, |
olleka
November 11, 2019 at 4:20 pm
|
Aha sorry for the mail-bombing 🙂 Did not know that. But like you said before. It should be enough to move jus the active.styles.CSS? Or should I also push the wp_options table to be sure? Regards |
Sebastian
November 11, 2019 at 5:47 pm
|
I would try without updating the wp_options table, as it should work with a cache clear. Cheers, |
olleka
November 11, 2019 at 5:51 pm
|
Ok. Thank you! Regards |
Sebastian
November 11, 2019 at 6:53 pm
|
You’re welcome 🙂 |