Jobs With Wordpress

0 views
Skip to first unread message

Su Mcdowall

unread,
Aug 4, 2024, 4:58:02 PM8/4/24
to cirguaboothsand
Idiscovered that I have 29,000 cron jobs in my WordPress database from deactivated and deleted plugins. I have tried a number of optimizer plugins but the huge number of cron jobs means I can't delete them using plugins.

I logged on to phpMyAdmin. I clicked on my database and then the 'search' tab. I typed in 'cron' then selected 'all tables' and clicked 'Go'. I scrolled down the search results list to my wp_options table. I clicked 'Browse'. At the top of the list was option_name 'cron'. I clicked 'Edit' then waited for the page to load. I clicked on the box that showed the list of cron jobs. The cron list was so long that it took about 80 seconds for my cursor to respond. I then used Ctrl-A on the keyboard to select all before hitting the delete button. It took about 2 minutes before my browser completed the deletion (chrome timed-out so I tried Firefox which worked).


After another couple of minutes the cron jobs for my current active plugins re-populated the list. There were 9 cron jobs (down from over 29,000!). Six years of duplicate cron jobs from badly coded plugins, some of which I just installed for a day to try out. Also hundreds from common plugins such as Wordfence, BackupBuddy, Nextgen Gallery, and AutoOptimizer - all of which I had uninstalled in the past. My site now loads like it's been turbo-charged. The admin area is much quicker. Admin timeout errors have disappeared. I had spent so much time on optimising my website trying to decrease the load time. I even moved hosts and upgraded my hosting plans. Nothing increased the speed of my site like deleting all the outdated cron jobs. Mobile download time decreased from 20 seconds to 6 seconds. Desktop download time decreased from about 12 to 4 seconds.


In my search for a solution I found very little information on the effect of cron jobs on website performance. Many said it made little difference and for a small number of cron jobs that's true. But years into the life of a WordPress site I wonder how many are bloated with hundreds if not thousands of old cron jobs from deleted plugins. Instead of asking users to check their php memory limit I would suggest that developers first ask users to check the number of cron jobs in wp_options when problem-solving fatal memory errors. You may be surprised/shocked at what you find! :-)


Using update_option would be safer as I'm not certain as to whether the value should be a serialized empty array or an empty string. You could check in wp-includes/options.php though ... but using update_option will handle it properly without worrying about the database.


I ran into a similar issue, where because of one of my own coding errors, thousands of copies of one particular cron job had been added to a site. The wp_clear_scheduled_hook function appeared to time out and fail. I got around it with a script that unset all instances of the cron function within the array and then adds the filtered array as the new cron option in the options table. See below.


I have a way very simple to delete all cron events.Before, you need to DISABLE WP Cron in wp-configThen, you install Plugin WP ControlThen, Move to Tool menu > Cron events > Click chose all > Delete all of them.Could you try it.Thanks.


If you clear your cron tasks this way and you use UpdraftPlus, you will need to re-save your settings in order to regenerate the cron tasks. Until you do this, your automated backups will not run (but manual backups will).


I just entered in google wordpress developer jobs in London, UK and found around 50 job listings. You just have to see which are the most popular job listing sites where you live and search each one. If you are not finding a lot of jobs in your area then there just might not be a lot of people looking for wordpress developers at the moment


also I recently updated my LinkedIn profile with links to my GitHub account and Portfolio and yesterday a non-tech recruiter contacted me and I had a phone call with him this morning and he sounded very interested and I would have gone to the next round of interview if I spoke fluent French but I do not


working on WP tutorials on youtube by freeCodeCamp to clear my mind on how developing WP themes from scratch or from html template works (most job postings about WP mention this and also plugin development)


I am trying to limit the number of emails sent from my website to cope with the hosting service email limitations.I am using cron jobs and an indicator of piling the emails in the database to check if the number of emails sent is approaching the limit of max emails sent.


The way I do that, is by directly executing the scheduled process then make it 'sleep' for a certain period of time (according to its position in the queue) and then send the email and log in the database. To explain further the reason why I am using scheduled tasks and 'sleep', consider the scenario below:


I need multi-threading in the single-threaded PHP language! As a workaround I used cron jobs, where each piled email is scheduled to be executed at time() (i.e. directly fire the scheduled job) which is hooked to the same function that sends emails. Using a flag, the function knows that the request is a piled email and makes it 'sleep' until the time required for the email quota reset.


The problem: If 5 people registered at almost the same time (while we still have an email pile), then we have 5 cron jobs that should all be executed at the same time and then sleep for a while (the sleep time can differ if the number of emails in the pile are already greater than the email quota), then emails are sent. However, when I check the logs in the database, I find that the scheduled jobs are executed sequentially and not in parallel. Sometimes it happens a cron job is fired before the other ends, but they don't fire at the same time.


I know that wordpress cron jobs are not really cron jobs and are fired once somebody visits the website (and I make sure I refresh the pages after the registration requests are sent to fire all of the scheduled tasks), but they seem to be the only option for me since my hosting server doesn't allow access to the server neither allows scheduling cron jobs.


Notice that the time stamp has 10 seconds difference between each log and the following one although they should all be fired at the same time and each sleeps for 10 seconds then all send emails in parallel.


If you can only send one or two emails at a time this is going to be tricky to solve. An easier way to solve this would probably be to have WordPress use an SMTP email server that allows the frequency of emails you need to send. Just adding a new email account on your current hosting provider might suffice. If you do not know how to set that up manually there are plugins that will do that for you.


Learning to write and publish a blog post in WordPress is super simple, and you can figure that out in an afternoon. Setting up and managing a WordPress site or learning custom WordPress development takes a little longer (but opens up a whole lot more opportunities).


First off, knowing how to publish a blog post, combined with awesome writing skills, opens up the world of professional blogging to you. Pro bloggers can be paid anywhere from about $10 up to $1,000 or more per blog post, depending on the site and complexity of the post, along with their expertise.


Pro blogging is a great intro to tech, as you can leverage your other experience and skills. Say you spent the past ten years working in finance. You can seek out blog writing positions at personal finance blogs, finance industry blogs, and similar sites. In addition to your professional experience, think about the hobbies and other interests you have when looking for blogs to write for.


Another option that is related to professional blogging is content marketing. With content marketing, you go a step beyond just creating the content. You also spend time promoting it and creating the larger, long-term strategies for a content department. While pro bloggers often write for topic sites where the main business is the blog, content marketers often work for companies where the blog is one tool in their suite of marketing efforts.


Knowing how to do things like install plugins and make basic changes to themes can also be useful if you want to work as a search engine optimization (SEO) specialist. There are tons of SEO plugins for WordPress out there, so knowing how to install them and set them up gives you an edge.


A lot of themes allow you to customize the design and features of the site without coding. Having an eye for design and knowing how to make these customizations can be a great way to get freelance clients.


I already mentioned setting up new WordPress sites and making some non-code customizations, but obviously if you know how to write HTML, CSS, and some PHP, you can set up completely custom sites for your clients.


Knowing HTML, CSS, and a little PHP will let you customize existing themes, or build child themes for sites. It also makes it easier to customize the way plugins look, since many of them require you to use CSS for styling.


One of the coolest things you can do with PHP, HTML, and CSS skills is that you can build your own themes and plugins completely from scratch. Design sites that look exactly the way you want, with exactly the functionality you want, without having to dive into code written by others. Take on the big-name clients who want a completely unique site like none other.


Not into freelancing? Since so many big companies are using WordPress, there are jobs out there managing enterprise-level WordPress sites. These jobs require you to have awesome WordPress skills, and are available both in-house and remotely. (Skillcrush is run with WordPress, and all of our developers work remotely!)


Unlock the gateway to a world of job opportunities with this thrilling guide on how to seamlessly embed the Indeed Jobs widget on your WordPress website! In just a few simple steps, you can create a dynamic job board right on your site, connecting your visitors with thousands of potential career options. Get ready to revolutionize your website, attract top talent, and take your recruitment efforts to new heights with the power of the Indeed Jobs widget on WordPress!

3a8082e126
Reply all
Reply to author
Forward
0 new messages