{"id":339,"date":"2016-04-30T21:45:26","date_gmt":"2016-04-30T20:45:26","guid":{"rendered":"http:\/\/www.webhostingsrbija.rs\/?p=339"},"modified":"2016-04-30T21:45:26","modified_gmt":"2016-04-30T20:45:26","slug":"smanjenje-cpu-ubrzanje-wordpress-sajta","status":"publish","type":"post","link":"https:\/\/www.webhostingsrbija.rs\/en\/smanjenje-cpu-ubrzanje-wordpress-sajta\/","title":{"rendered":"Reduce CPU and speed up your WordPress site"},"content":{"rendered":"<p>The following items will help those who are new to the process of creating websites in WordPress, but also those who are a little more experienced, to remember what they may have missed.<\/p>\n<p>\u2013 Fix and optimize. You can optimize the database in the following way<br \/>\na) In the database section of cPanel, click on PHPMyAdmin.<br \/>\nb) The table that appears contains all posts, categories, comments, blogroll links, users, and so on.<br \/>\nc) Scroll to the bottom. Click on Check All.<br \/>\nd) On the right side of the Check All field you will find a drop down menu. Select Repair<br \/>\ne) Repeat the procedure and select Optimize from the drop-down menu.<\/p>\n<p>\u2013 Delete plugins that you don&#039;t use completely. You don&#039;t just deactivate it, you delete it completely.<\/p>\n<p>- Close every page where you enter articles if you are not using them. WP automatically saves everything on the server which requires more CPU than just loading a post.<\/p>\n<p>- Avoid a plugin or widget that automatically loads RSS. Also remove any RSS widgets that load rss like Tweets or anything like that.<\/p>\n<p>- Do not post via email. Submit articles exclusively through the WP interface as any other method requires more system resources for processing.<\/p>\n<p>\u2013 Use summarie in Feeds. In Settings-&gt;Reading, select Summaries in Feeds.<\/p>\n<p>- In Settings - Discussion, turn off email notifications.<\/p>\n<p>- You can use Google Search in addition to earning, it will certainly reduce the processing of the database and browsing the entire site, thus reducing server resources.<\/p>\n<p>\u2013 Control exactly what you upload images or video. Use Photoshop, Gimp, or Fireworks to reduce images.<\/p>\n<p>\u2013 You can try installing the Cache plugin. Let&#039;s say WP Super Cache or W3 Total Cache<br \/>\nYou can also use WP Minify to minify CSS and JS.<\/p>\n<p>- It is possible that there is some plugin that causes frequent refresh of the wp-cron.php page.<br \/>\nHow to disable more at: http:\/\/wordpress.org\/support\/topic\/124485?replies=13<\/p>\n<p>- Update. Update and finally do a regular Update! WP makes very frequent updates where it improves and corrects errors. This is the most important thing when using WP. As soon as a new version comes out, try to update. Of course, a new update can cause changes to the theme you are using, but that risk certainly exists later.<\/p>\n<p>You can find more information at: http:\/\/wordpress.org\/support\/topic\/164456?replies=61<\/p>\n<p>The following code is taken from:<br \/>\nhttp:\/\/www.askapache.com\/htaccess\/speed-up-your-site-with-caching-and-cache-control.html#caching-with-mod_headers<br \/>\nCaching with both mod_expires + mod_headers<br \/>\n# Turn on Expires and set default to 0<br \/>\nExpiresActive On<br \/>\nExpiresDefault A0<\/p>\n<p># Set up caching on media files for 1 year (forever?)<\/p>\n<p>ExpiresDefault A29030400<br \/>\nHeader append Cache-Control &quot;public&quot;\u201c<\/p>\n<p># Set up caching on media files for 1 week<\/p>\n<p>ExpiresDefault A604800<br \/>\nHeader append Cache-Control &quot;public&quot;\u201c<\/p>\n<p># Set up 2 Hour caching on commonly updated files<\/p>\n<p>ExpiresDefault A7200<br \/>\nHeader append Cache-Control &quot;proxy-revalidate&quot;\u201c<\/p>\n<p># Force no caching for dynamic files<\/p>\n<p>ExpiresActive Off<br \/>\nHeader set Cache-Control &quot;private, no-cache, no-store, proxy-revalidate, no-transform&quot;\u201c<br \/>\nHeader set Pragma &quot;no-cache&quot;\u201c<\/p>\n<p>Caching with mod_headers<br \/>\n# 1 YEAR<\/p>\n<p>Header set Cache-Control &quot;max-age=29030400, public&quot;\u201c<\/p>\n<p># 1 WEEK<\/p>\n<p>Header set Cache-Control &quot;max-age=604800, public&quot;\u201c<\/p>\n<p># 3 HOURS<\/p>\n<p>Header set Cache-Control &quot;max-age=10800&quot;\u201c<\/p>\n<p># NEVER CACHE<\/p>\n<p>Header set Cache-Control &quot;max-age=0, private, no-store, no-cache, must-revalidate&quot;\u201c<\/p>\n<p>Caching with mod_expires<br \/>\nExpiresActive On<br \/>\nExpiresDefault A0<\/p>\n<p># 1 YEAR<\/p>\n<p>ExpiresDefault A9030400<\/p>\n<p># 1 WEEK<\/p>\n<p>ExpiresDefault A604800<\/p>\n<p># 3 HOURS<\/p>\n<p>ExpiresDefault A10800\u2033<\/p>","protected":false},"excerpt":{"rendered":"<p>Slede\u0107e stavke \u0107e pomo\u0107i onima koji su na po\u010detku u procesu izrade sajtova u WordPress-u ali i onima malo iskusnijima da se podsete \u0161ta su mo\u017eda propustili. &#8211; Popravi i optimizuj. Bazu podataka mo\u017eete da optimuzujete na slede\u0107i na\u010din a) U database sekciji u cPanelu, kliknite na PHPMyAdmin. b) Tabela koja se pojavi sadr\u017ei sve [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":340,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[18,19],"tags":[],"class_list":["post-339","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kako","category-wordpress"],"_links":{"self":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/comments?post=339"}],"version-history":[{"count":0,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/339\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/media\/340"}],"wp:attachment":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/media?parent=339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/categories?post=339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/tags?post=339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}